<?php

/**
 * feishuAppidMap 是miniProgram的全集
 * feishuAppidMap 是新方法，需要兼容所有miniProgram老app
 *
 * 每次新增小程序appId时，feishuAppidMap、都要加
 */

return [

    // 这个key作废了，以后别用了！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！
    // 用这个代替\App\Models\Common\ConfigModel::getFsConfigByAppId($appId);
    'feishuAppidMap' => [
        // 开店
        env('OPEN_SHOP_SHOP_FS_APP_ID')          => [
            'appid'     => env('OPEN_SHOP_SHOP_FS_APP_ID'),
            'appSecret' => env('OPEN_SHOP_SHOP_FS_APP_SECRET'),
        ],
        // 开店 供应链
        env('OPEN_SHOP_SHOP_SUPPLIER_FS_APP_ID') => [
            'appid'     => env('OPEN_SHOP_SHOP_SUPPLIER_FS_APP_ID'),
            'appSecret' => env('OPEN_SHOP_SHOP_SUPPLIER_FS_APP_SECRET'),
        ],
        // 选址
        env('OPEN_SHOP_SITE_FS_APP_ID')          => [
            'appid'     => env('OPEN_SHOP_SITE_FS_APP_ID'),
            'appSecret' => env('OPEN_SHOP_SITE_FS_APP_SECRET'),
        ],
        // 选址 供应链
        env('OPEN_SHOP_SITE_SUPPLIER_FS_APP_ID') => [
            'appid'     => env('OPEN_SHOP_SITE_SUPPLIER_FS_APP_ID'),
            'appSecret' => env('OPEN_SHOP_SITE_SUPPLIER_FS_APP_SECRET'),
        ],
        // 运营中心 --
        env('WEB_PLATFORM_CENTER_APPID')         => [
            'appid'     => env('WEB_PLATFORM_CENTER_APPID'),
            'appSecret' => env('WEB_PLATFORM_CENTER_SECRET'),
        ],
        // 外部 供应链 --
        env('EXT_SUPPLIER_FS_APP_ID')            => [
            'appid'     => env('EXT_SUPPLIER_FS_APP_ID'),
            'appSecret' => env('EXT_SUPPLIER_FS_APP_SECRET'),
        ],
        // 加盟名片
        env('CALLING_CARDS_FS_APP_ID') => [
            'appid'     => env('CALLING_CARDS_FS_APP_ID', ''),
            'appSecret' => env('CALLING_CARDS_FS_APP_SECRET', ''),
        ],
        // 巡店 - 小程序
        env('CRUISE_APPID') => [
            'appid'     => env('CRUISE_APPID'),
            'appSecret' => env('CRUISE_APP_SECRET'),
        ],
        // 稽核 - 小程序
        env('CRUISE_CHECK_APPID') => [
            'appid'     => env('CRUISE_CHECK_APPID'),
            'appSecret' => env('CRUISE_CHECK_APP_SECRET'),
        ],
        // 稽核 - 三方小程序
        env('EXT_CRUISE_CHECK_APPID')            => [
            'appid'     => env('EXT_CRUISE_CHECK_APPID'),
            'appSecret' => env('EXT_CRUISE_CHECK_APP_SECRET'),
        ],
        // 稽核 - 工厂
        env('FACTORY_CRUISE_CHECK_APPID') => [
            'appid'     => env('FACTORY_CRUISE_CHECK_APPID'),
            'appSecret' => env('FACTORY_CRUISE_CHECK_APP_SECRET'),
        ],
        // 夸父 UI
        env('KUAFU_UI_APPID') => [
            'appid'     => env('KUAFU_UI_APPID'),
            'appSecret' => env('KUAFU_UI_APP_SECRET'),
        ],
        // 夸父 招聘
        env('KUAFU_ZHAO_PIN_APPID') => [
            'appid'     => env('KUAFU_ZHAO_PIN_APPID'),
            'appSecret' => env('KUAFU_ZHAO_PIN_APP_SECRET'),
        ],
        // 夸父 夸父供应商2下的供应链
//        env('KUAFU_SUPPLIER2_SUPPLY_CHAIN_APPID') => [
//            'appid'     => env('KUAFU_SUPPLIER2_SUPPLY_CHAIN_APPID'),
//            'appSecret' => env('KUAFU_SUPPLIER2_SUPPLY_CHAIN_APP_SECRET'),
//        ],
    ],

    // 这个key作废了，以后别用了！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！！
    // 用这个代替\App\Models\Common\ConfigModel::getFsConfigByAppId($appId);
    'miniProgram'    => [

        // 夸父加盟名片，飞书小程序
        'callingCards' => [
            'appId'     => env('CALLING_CARDS_FS_APP_ID', ''),
            'appSecret' => env('CALLING_CARDS_FS_APP_SECRET', ''),
        ],
        'site'         => [
            'appId'     => env('OPEN_SHOP_SITE_FS_APP_ID', ''),
            'appSecret' => env('OPEN_SHOP_SITE_FS_APP_SECRET', ''),
        ],
        'siteSupplier' => [
            'appId'     => env('OPEN_SHOP_SITE_SUPPLIER_FS_APP_ID', ''),
            'appSecret' => env('OPEN_SHOP_SITE_SUPPLIER_FS_APP_SECRET', ''),
        ],
        'open'         => $openShop = [
            'appId'     => env('OPEN_SHOP_SHOP_FS_APP_ID', ''),
            'appSecret' => env('OPEN_SHOP_SHOP_FS_APP_SECRET', ''),
        ],
        'openShop'     => $openShop,
        'openSupplier' => [
            'appId'     => env('OPEN_SHOP_SHOP_SUPPLIER_FS_APP_ID', ''),
            'appSecret' => env('OPEN_SHOP_SHOP_SUPPLIER_FS_APP_SECRET', ''),
        ],
        'cruise'       => [
            'appId'     => env('CRUISE_APPID'),
            'appSecret' => env('CRUISE_APP_SECRET'),
        ],
        'cruiseCheck'       => [
            'appId'     => env('CRUISE_CHECK_APPID'),
            'appSecret' => env('CRUISE_CHECK_APP_SECRET'),
        ],
        'cruiseCheckSupplier'       => [
            'appId'     => env('EXT_CRUISE_CHECK_APPID'),
            'appSecret' => env('EXT_CRUISE_CHECK_APP_SECRET'),
        ],
        // 稽核工厂
        'cruiseCheckFactory' => [
            'appId'     => env('FACTORY_CRUISE_CHECK_APPID'),
            'appSecret' => env('FACTORY_CRUISE_CHECK_APP_SECRET'),
        ],
        // 夸父 UI
        'kuafuUi' => [
            'appId'     => env('KUAFU_UI_APPID'),
            'appSecret' => env('KUAFU_UI_APP_SECRET'),
        ],
        // 夸父招聘
        'zhaopin' => [
            'appId'     => env('KUAFU_ZHAO_PIN_APPID'),
            'appSecret' => env('KUAFU_ZHAO_PIN_APP_SECRET'),
        ],
        // 夸父供应商2下的供应链
//        'supplier2SupplyChain' => [
//            'appId'     => env('KUAFU_SUPPLIER2_SUPPLY_CHAIN_APPID'),
//            'appSecret' => env('KUAFU_SUPPLIER2_SUPPLY_CHAIN_APP_SECRET'),
//        ],
    ],
    // 飞书群机器人配置
    'robots'         => [
        'warning'       => [
            'url'   => env('FS_HOCK_URL', ''),
            'token' => env('FS_SECRET_TOKEN', ''),
        ],
        'join'          => [
            'url'   => env('JOIN_HOCK_URL', ''),
            'token' => env('JOIN_SECRET_TOKEN', ''),
        ],
        'check'         => [
            'url'   => env('CHECK_HOCK_URL', ''),
            'token' => env('CHECK_SECRET_TOKEN', ''),
        ],
        'internal'      => [
            'url'   => env('INTERNAL_HOCK_URL', ''),
            'token' => env('INTERNAL_SECRET_TOKEN', ''),
        ],
        'open_shop'     => [
            'url'   => env('OPEN_SHOP_HOCK_URL', ''),
            'token' => env('OPEN_SHOP_SECRET_TOKEN', ''),
        ],
        'site_location' => [
            'url'      => env('OPEN_SHOP_SITE_LOCATION_HOCK_URL', ''),
            'urlToken' => env('OPEN_SHOP_SITE_LOCATION_HOCK_URL_TOKEN', ''),
            'token'    => env('OPEN_SHOP_SITE_LOCATION_SECRET_TOKEN', ''),
        ],
        'shijia'        => [
            'url'   => env('CALLING_CARDS_SHIJIA_HOCK_URL', ''),
            'token' => env('CALLING_CARDS_SHIJIA_SECRET_TOKEN', ''),
        ],
        'lantu-clue'    => [
            'url'   => env('CALLING_CARDS_LANTU_CLUE_HOCK_URL',
                'https://open.feishu.cn/open-apis/bot/v2/hook/2141cdf2-e582-4b39-b2a0-74dc0969ebfc'),
            'token' => env('CALLING_CARDS_LANTU_CLUE_SECRET_TOKEN', 'TpXNvpTwSWd686SnHVUi1g'),
        ],
        'sabo'          => [
            'url'   => env('SABO_GROUP_ROBOT_HOCK_URL', ''),
            'token' => env('SABO_GROUP_ROBOT_SECRET_TOKEN', ''),
        ],
        'kebi'          => [
            'url'   => env('KEBI_GROUP_ROBOT_HOCK_URL', ''),
            'token' => env('KEBI_GROUP_ROBOT_SECRET_TOKEN', ''),
        ],
        'hupo'          => [
            'url'   => env('HUPO_GROUP_ROBOT_HOCK_URL', ''),
            'token' => env('HUPO_GROUP_ROBOT_SECRET_TOKEN', ''),
        ],
        'nazi'          => [
            'url'   => env('NAZI_GROUP_ROBOT_HOCK_URL', ''),
            'token' => env('NAZI_GROUP_ROBOT_SECRET_TOKEN', ''),
        ],
        'liao'          => [
            'url'   => env('LIAO_GROUP_ROBOT_HOCK_URL', ''),
            'token' => env('LIAO_GROUP_ROBOT_SECRET_TOKEN', ''),
        ],
        'appraise' => [
            'url'   => env('FS_APPRAISE_URL', ''),
            'token' => env('FS_APPRAISE_SECRET_TOKEN', ''),
        ],
        'site_location_not_confirm' => [
            'url'   => env('FS_SITE_LOCATION_NOT_CONFIRM_URL', ''),
            'token' => env('FS_SITE_LOCATION_NOT_CONFIRM_ROBOT_SECRET_TOKEN', ''),
        ],
        'appraiseTest' => [
            'url'   => env('FS_APPRAISE_TEST_URL', ''),
            'token' => env('FS_APPRAISE_TEST_SECRET_TOKEN', ''),
        ],
        'auditLog' => [
            'url'   => env('AUDIT_LOG_ROBOT_HOCK_URL', ''),
            'token' => env('AUDIT_LOG_GROUP_ROBOT_SECRET_TOKEN', ''),
        ],
        'designNotify' => [
            'url'   => env('AUDIT_DESIGN_NOTIFY_HOCK_URL', ''),
            'token' => env('AUDIT_DESIGN_NOTIFY_ROBOT_SECRET_TOKEN', ''),
        ],
        'hire' => [
            'url'   => env('FS_HIRE_NOTIFY_HOCK_URL', ''),
            'token' => env('FS_HIRE_NOTIFY_ROBOT_SECRET_TOKEN', ''),
        ],
        'wangguiAudit' => [
            'url'       => env('WANGGUI_AUDIT_ROBOT_HOCK_URL', ''),
            'urlToken'  => env('WANGGUI_AUDIT_ROBOT_HOCK_URL_TOKEN', ''),
            'token'     => env('WANGGUI_AUDIT_ROBOT_SECRET_TOKEN', ''),
        ],

    ],

    // 开店web
    'openShop'       => [
        'appID'     => env('OPEN_SHOP_APPID'),
        'AppSecret' => env('OPEN_SHOP_APP_SECRET'),
    ],

    // 运营中心
    'center'         => [
        'appID'     => env('WEB_PLATFORM_CENTER_APPID'),
        'AppSecret' => env('WEB_PLATFORM_CENTER_SECRET'),
    ],
    // 工单
    'workOrder'      => [
        'appID'     => env('WEB_PLATFORM_CENTER_APPID'),
        'AppSecret' => env('WEB_PLATFORM_CENTER_SECRET'),
    ],
];
